@mixin bg($name) {
    background: url("./images/" + $name) no-repeat center / 100%;
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
// 面板
.wrap {
    position: relative;
    width: 375px;
    height: 420px;
    @include bg("wrap.png");
}
.wrap_title {
    @include bg("wrap_title.png");
}
.machine {
    position: relative;
    margin: 37.5px auto 0;
    width: 360px;
    height: 368px;
    z-index: 1;
}
.machine_svga {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.machine_chance {
    position: absolute;
    top: 184.5px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 140px;
    height: 25px;
    line-height: 25px;
    @include bg("machine_chance.png");
    font-size: 12px;
    color: #ffffff;
    text-align: center;
}
.machine_open_btn {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100px;
    margin: 0 auto;
    width: 131px;
    height: 49.5px;
    cursor: pointer;
    @include bg("machine_open_btn.png");
    background-size: 100% 100%;
    transition: 0.2s;
}
.machine_open_btn:active {
    height: 46px;
}
.machine_price {
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 10px;
    line-height: 10px;
    font-size: 10px;
    color: #eceb7d;
    letter-spacing: 2.5px;
    text-align: center;
    user-select: none;
}
.machine_bao {
    position: absolute;
    top: 284px;
    right: 47.5px;
    padding-top: 15px;
    width: 86px;
    height: 71px;
    @include bg("machine_bao.png");
    color: #ffffff;
    text-shadow: 0 0.5px 1px #13054f;
}
.machine_bao_label {
    padding-left: 10px;
    height: 10px;
    line-height: 10px;
    font-size: 10px;
}
.machine_bao_value {
    margin-top: 8.5px;
    height: 13px;
    line-height: 13px;
    font-size: 13px;
    text-align: center;
}
.decorate {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    margin: 0 auto;
    width: 356px;
    height: 311px;
    @include bg("decorate.png");
}
.dialog_close_btn {
    position: absolute;
    top: -25px;
    right: 0px;
    width: 25px;
    height: 25px;
    @include bg("dialog_close_btn.png");
    cursor: pointer;
}
// 结果弹窗
.result {
    position: relative;
    padding-top: 75px;
    width: 320px;
    height: 310px;
    @include bg("result.png");
    .dialog_close_btn {
        top: 7.5px;
        right: 7.5px;
    }
}
.result_gift {
    margin: 0 auto;
    width: 130px;
}
.result_gift_img {
    width: 130px;
    height: 130px;
}
.result_gift_name {
    margin-top: 3px;
    font-size: 14px;
    line-height: 16px;
    color: #ffffff;
    text-align: center;
}
.result_open_btn {
    position: absolute;
    bottom: 27.5px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 118px;
    height: 37px;
    @include bg("result_open_btn.png");
    cursor: pointer;
}
